package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * Hl7病人入院明细表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 14:34:11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_hl7_ry_detail")
public class BHl7RyDetail extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 对应事件id
     */
    @TableField(value = "event_id", condition = EQUAL)
    @Schema(description = "对应事件id")
    private Long eventId;
    /**
     * 
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "")
    private String patientIdent;
    /**
     * 
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "")
    private String hospitalNumber;
    /**
     * 入院时间
     */
    @TableField(value = "ry_time", condition = EQUAL)
    @Schema(description = "入院时间")
    private LocalDateTime ryTime;
    /**
     * 住院次数
     */
    @TableField(value = "zycs", condition = LIKE)
    @Schema(description = "住院次数")
    private String zycs;
    /**
     * 护理等级
     */
    @TableField(value = "nursing_level", condition = LIKE)
    @Schema(description = "护理等级")
    private String nursingLevel;
    /**
     * 入院类型R常规E紧急W留观
     */
    @TableField(value = "ry_type", condition = LIKE)
    @Schema(description = "入院类型R常规E紧急W留观")
    private String ryType;
    /**
     * 主治医生工号
     */
    @TableField(value = "zz_doctor_ident", condition = LIKE)
    @Schema(description = "主治医生工号")
    private String zzDoctorIdent;
    /**
     * 主治医生姓名
     */
    @TableField(value = "zz_doctor_name", condition = LIKE)
    @Schema(description = "主治医生姓名")
    private String zzDoctorName;
    /**
     * 收治医生工号
     */
    @TableField(value = "sz_doctor_ident", condition = LIKE)
    @Schema(description = "收治医生工号")
    private String szDoctorIdent;
    /**
     * 收治医生姓名
     */
    @TableField(value = "sz_doctor_name", condition = LIKE)
    @Schema(description = "收治医生姓名")
    private String szDoctorName;



}
